﻿<dialog:DialogBase x:Class="Falafel.Controls.Dialogs.MessageDialog"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:dialog="clr-namespace:Falafel.Controls.Dialogs"
           x:Name="DialogBox" Style="{StaticResource DialogStyle}">
    <Grid x:Name="LayoutRoot" Margin="2" ShowGridLines="False">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Border Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center">
                <Image x:Name="ImageAlertType" Margin="0,0,8,0" Width="36" Height="36" Stretch="Fill" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" />
            </Border>

            <TextBlock x:Name="TextBloxText" Grid.Row="0" Grid.Column="1" FontSize="13" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5"
                       TextAlignment="Center" TextWrapping="Wrap" MaxWidth="500" MaxHeight="650" MinWidth="350" MinHeight="50"/>
        </Grid>

        <StackPanel Grid.Row="1" x:Name="StackPanelButtons" Orientation="Horizontal" HorizontalAlignment="Right" />
    </Grid>
</dialog:DialogBase>
